import request from "@/sheep/request";

export default {
  list: (params) =>
    request({
      url: `/app_api.php?t=danger&s=company&op=getDangerIndex`,
      method: "POST",
      data: params,
    }),
  detail: (params) =>
    request({
      url: `/app_api.php?t=danger&s=company&op=getDangerInfo`,
      method: "POST",
      data: params,
    }),
  update: (params) =>
    request({
      url: `/app_api.php?t=danger&s=company&op=getDangerEditForm`,
      method: "POST",
      data: params,
    }),
  delete: (params) =>
    request({
      url: `/app_api.php?t=danger&s=company&op=getDangerDel`,
      method: "POST",
      data: params,
    }),
  updateRecord: (params) =>
    request({
      url: `/app_api.php?t=danger&s=company&op=getDangerRecordEditForm`,
      method: "POST",
      data: params,
    }),
  deleteRecord: (params) =>
    request({
      url: `/app_api.php?t=danger&s=company&op=getDangerRecordDel`,
      method: "POST",
      data: params,
    }),
};
